from rest_framework import serializers
from django.contrib.auth.models import Group, Permission


# 全部用户组
class GroupModelSerializer(serializers.ModelSerializer):
    class Meta:
        model = Group
        fields = "__all__"


# 全部权限
class GroupPermissionSerializer(serializers.ModelSerializer):
    class Meta:
        model = Permission
        fields = "__all__"
